package cn.kuporo.seckill.stock.domain.model.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: kuporo
 * @since: 2025/8/1
 * @description: 库存编码模式
 */
@Getter
@AllArgsConstructor
public enum SeckillStockBucketArrangementMode {
    /**
     * 按总量模式编排
     */
    TOTAL(1),

    /**
     *
     */
    INCREMENTAL(2);

    public static boolean isTotalArrangementMode(Integer mode) {
        return TOTAL.mode.equals(mode);
    }

    public static boolean isIncrementalArrangementMode(Integer mode) {
        return INCREMENTAL.mode.equals(mode);
    }

    private final Integer mode;
}
